﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TrackSystem.Entities.Models
{
    /// <summary>
    /// 变量分组
    /// </summary>
    public class VarGroupTable
    {
        /// <summary>
        /// 统一标识符
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Display(Name = "统一标识符")]
        public int Id { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [Required]
        [Display(Name = "变量组名称")]
        public required string Name { get; set; }

        /// <summary>
        /// 设备描述
        /// </summary>
        public string? Description { get; set; }

        /// <summary>
        /// 该设备包括的通道
        /// </summary>
        [NotMapped]
        public List<string>? varNames { get; set; }
    }
}
